package com.spzx.product.api.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.NonNull;
import lombok.Setter;

/**
 * <p>
 * 分类品牌
 * </p>
 *
 * @author atguigu
 * @since 2024-10-26
 */
@Getter
@Setter
@TableName("brand")
@Schema(description ="品牌管理" )
public class Brand extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 品牌名称
     */
    @TableField("name")
    @Schema(description ="品牌名称" )
    @NotBlank(message = "品牌名称不能为空")
    @Size(min = 1,max = 6,message = "品牌名字的超度需要是1-6个字符")
    private String name;

    /**
     * 品牌图标
     */

    @TableField("logo")
    @Schema(description ="品牌图标" )
    @NotBlank(message = "品牌名称不能为空")
    private String logo;
}
